package com.wgy.blog.service;

import com.github.pagehelper.PageInfo;
import com.wgy.blog.pojo.Login;
import com.wgy.blog.pojo.PageQuery;
import com.wgy.blog.pojo.User;

import java.util.List;

/**
 * @Author:Iny
 * @Data：2021/11/6 12:05
 */
public interface UserService {
    PageInfo findAll(PageQuery pageQuery);

    User getUserByName(String userName);

//    List<Permission> getPermissionByUserId(Integer userId);

    String login(Login login);

    User findById(int id);

    int update(User user);
}
